package com.skydonkey.dao;

import com.skydonkey.pojo.po.VideoSamplesFailed;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface VideoSamplesFailedMapper {


    @Select("select * from video_samples_failed where video_id = #{videoId}")
    List<VideoSamplesFailed> getFailed(Long videoId);

    @Insert("insert into video_samples_failed (video_id, error) values(#{videoId}, #{error}) ")
    int insertFailed(VideoSamplesFailed sampleFailed);

}
